package com.cui.demoshiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/userList")
    @RequiresPermissions("userManage")
    public String userList() {
        return "user/userList" ;
    }

    @RequestMapping("/userAdd")
    @RequiresPermissions("userAdd")
    public String userAdd() {
        return "user/userAdd" ;
    }
}
